<meta charset="utf-8">
<script>
  var name=prompt("请输入一个英文单词");
        if(name=="apple"){
            document.write("苹果");
        }
        else if(name=="orange"){
            document.write("橘子");
        }
        else{
            document.write("查不到");    
        }
</script>
